﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyQuestion.aspx.cs" Inherits="Web.AdminQuestion" %>
<%@ Register TagPrefix="uc1" TagName="Floor" Src="Floor.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>我的题库</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="js/boxy/stylesheets/boxy.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="js/boxy/javascripts/jquery.boxy.js" type="text/javascript"></script>
    <script src="js/module.js"></script>
    <script src ="js/formulae.js" type ="text/javascript"></script>
    
    <script src="js/boxy/javascripts/jquery.boxy.js" type="text/javascript"></script>
    <script src="js/autocoplete/jquery.autocomplete.js" type="text/javascript"></script>
    <script src="js/module.js" type="text/javascript"></script>
    <script src="js/date_input/jquery.date_input.pack.js" type="text/javascript"></script>
    <script src="js/date_input/Date_Format.js" type="text/javascript"></script>
    <script src="js/jquery.inputlinkselect.js" type="text/javascript"></script>
</head>
<body>
<div id="header">
  <div id="headerBody">
    <h1 class="logo"><img src="images/logo.jpg" alt="海淀小学题库管理平台" /></h1>
    <div class="menu"><img src="images/add.gif" align="absmiddle" /><a href='EditMyInfo.aspx'>我的信息</a> |  <a href="AddQuestion.aspx" class="add">新建试题</a> | <a href="MyQuestion.aspx">试题管理</a> | <a href="Help.aspx" id="help">帮助文档</a> | <a href='javascript:ShowIframe("UpdatePassword.aspx","修改密码",400,200);'>修改密码</a> | <a href='loginout.aspx'>登录退出</a></div>  
  </div>
  
</div>
<div id="main">
    <form id="form1" runat="server">
    <div id="block">
    <h3 id="blocktitle">筛选条件</h3>
    <div id="blockcontent" class="filter">
      <div class="form">
        <p>
        <asp:DropDownList ID="SubjectList" runat="server" AutoPostBack="True" 
            onselectedindexchanged="SubjectIdList_SelectedIndexChanged">
        </asp:DropDownList>
        <asp:DropDownList ID="KnowIdList" runat="server" TabIndex="101" Visible="false" >
            </asp:DropDownList>
       <asp:DropDownList 
                ID="BookList" runat="server" TabIndex="102" Visible="false">
            </asp:DropDownList>
        </p>
        <p>
        <asp:DropDownList ID="QuesTypeList" runat="server">
        </asp:DropDownList>
        <asp:DropDownList 
                ID="CognitiveLevelIdList" runat="server" TabIndex="104">
            </asp:DropDownList>
        <asp:DropDownList 
                ID="DifficIdList" runat="server" TabIndex="102">
            </asp:DropDownList>
            </p>
            <p>
        知识点代码：<asp:TextBox ID="knowIddaima" runat="server" Columns="15" Width="50"></asp:TextBox>
        试题类型代码：<asp:TextBox ID="QuesTypedaima" runat="server" Columns="15" Width="50"></asp:TextBox>
        认知层次代码：<asp:TextBox ID="Cognitivedaima" runat="server" Columns="15" Width="50" MaxLength="30"></asp:TextBox>
        难度级别代码：<asp:TextBox ID="DifficIddaima" runat="server" Columns="15" Width="50"  MaxLength="30"></asp:TextBox>
        </p>
            <p>
        估计时间：<asp:TextBox ID="ComputeTime" runat="server" Columns="15" Width="50"></asp:TextBox>
        分值：<asp:TextBox ID="Score" runat="server" Columns="15" Width="50"></asp:TextBox>
        关键字：<asp:TextBox ID="KeyWord" runat="server" Columns="15" Width="250" MaxLength="30"></asp:TextBox>
        </p>
        </div>
        <div class="search">
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="搜索" />
        </div>
        
    </div>
    <div id="blocktitle"><h3>题库列表</h3><em>[<a href="AddQuestion.aspx">新建试题</a>]</em></div>
    <div id="blockcontent">
        <asp:ListView ID="QList" runat="server" onitemdatabound="QList_ItemDataBound" EnableViewState=false>
        <LayoutTemplate><asp:Label ID="itemPlaceholder" runat="server" Text="Label"></asp:Label>
        </LayoutTemplate>
            
        <ItemTemplate>
        
            <div class='Qblock'>
                <div class='Qtitle'><h5>
                    <asp:Label ID="lb" runat="server" ForeColor="Red" OnDataBinding="lbStatus_DataBinding" Text='<%# Eval("StatusId")%>'></asp:Label>分数：<%# Eval("Score")%></h5>
                 <em id ="HiddenScore">[<a href='AddQuestion.aspx?editid=<%# Eval("ID")%>'>编辑</a> | <a href='javascript:ShowConfirm("AddQuestion.aspx?delid=<%# Eval("ID")%>","删除操作不可逆，是否确认继续执行？",150,60);'>删除</a>]</em></div>
                <div class='Qcontent'><%# Eval("Title")%>
                <div class="Qsp"><b>参考答案：</b><br /><%# Eval("Answer")%></div>
                </div>
                <div class='Qline'><b>出题人：</b><%# Eval("Printer")%> | <b>出题时间：</b><%# Eval("PrintDate")%> | <b>入库时间：</b><%# Eval("CreateDate")%></div>
            </div>
            
        </ItemTemplate>
        </asp:ListView>
    </div>
    <div id="blockfloor">
        <asp:Label ID="PageLabel" runat="server" Text=""></asp:Label></div>
    </div>
    </form>
</div>
<uc1:Floor id='Floor1' runat='server'></uc1:Floor>
<script type="text/javascript">
    //$("#KnowIdList").change(function(){$("#knowIddaima").val($("#KnowIdList").val())});
 //  $("#QuesTypeList").change(function(){$("#QuesTypedaima").val($("#QuesTypeList").val())});
 //  $("#CognitiveLevelIdList").change(function(){$("#Cognitivedaima").val($("#CognitiveLevelIdList").val())});
 //  $("#DifficIdList").change(function(){$("#DifficIddaima").val($("#DifficIdList").val())});
   
   $("#KnowIdList").change(function(){
       if($("#KnowIdList").val()!="0")
       {
          $("#knowIddaima").val($("#KnowIdList").val())
       }
       else
       {
          $("#knowIddaima").val("");
       }
       
       // $("#knowIddaima").val($("#KnowIdList").val())
         
   });
   $("#QuesTypeList").change(function(){
       if($("#QuesTypeList").val()!="0")
       {
          $("#QuesTypedaima").val($("#QuesTypeList").val())
       }
       else
       {
          $("#QuesTypedaima").val("");
       }
   });
   $("#CognitiveLevelIdList").change(function(){
       
           if($("#CognitiveLevelIdList").val()!="0")
           {
              $("#Cognitivedaima").val($("#CognitiveLevelIdList").val())
           }
           else
           {
              $("#Cognitivedaima").val("");
           }
       // $("#Cognitivedaima").val($("#CognitiveLevelIdList").val())
        
    });
   $("#DifficIdList").change(function(){
        
        if($("#DifficIdList").val()!="0")
           {
              $("#DifficIddaima").val($("#DifficIdList").val())
           }
           else
           {
              $("#DifficIddaima").val("");
           }
       // $("#DifficIddaima").val($("#DifficIdList").val())
        
   });
   
    $("#QuesTypedaima").LinkPageSelect({ obj: "#QuesTypeList" });
    $("#DifficIddaima").LinkPageSelect({ obj: "#DifficIdList" });
    $("#Cognitivedaima").LinkPageSelect({ obj: "#CognitiveLevelIdList" });
    $("#knowIddaima").LinkPageSelect({ obj: "#KnowIdList" });
</script>
</body>
</html>
